#ifndef READKNXCTRLCMD_H
#define READKNXCTRLCMD_H

#include <QObject>

#include "Command/BaseCmd.h"
#include "Protocol/SWKNXProtocol.h"
class readKNXCtrlCmd: public BaseCmd
{
     Q_OBJECT
public:
    enum{FunctionCode = SWKNXProtocol::readKnxCtl};

    Q_INVOKABLE explicit readKNXCtrlCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    void setGroupAddress(quint16 groupAddress);
    void setKnxLen(quint8 len);
    void setDataList(QByteArray dataList);

    quint16 groupAddress();
    quint8 knxLen();
    QByteArray dataList();

  private:
    quint16 m_groupAddress;

    quint8 m_knxLen;
    QByteArray m_dataList;
};

#endif // READKNXCTRLCMD_H
